package com.example.javademo.easy;

public class User {
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void print2() {
        User U = new User();
        U.setUsername("迪迪");
        System.out.println(U.getUsername());
    }

    @Override
    public String toString() {
        return "username:" + username;
    }
}
